//$Revision: 9 $
//$Date: 2012-08-15 15:46:31 +0000 (Wed, 15 Aug 2012) $
//$Author: dev@arbrebinaire.com $
/**
 * @fileOverview
 *
 * Number utility
 *
 * @author     Francois Hetu <a href="mailto:dev@arbrebinaire.com">dev@arbrebinaire.com</a>
 * @version    SVN: $$Id: number.js 9 2012-08-15 15:46:31Z dev@arbrebinaire.com $$
 */

var ArbreBinaire = ArbreBinaire || {};
ArbreBinaire.Number = (function(number){
	var rand = function(from, to){
            if(from >= to) throw new Error('Utilities Exception *** rand: Lower limit is equal to higher limit or larger');
            return from + Math.floor((to - from + 1) * Math.random());
        };
		number.rand = rand;
	return number;
})(ArbreBinaire.Number || {});